package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.annotation.LogDetail;
import com.ysd.lis.aspect.OperationType;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.AddAndUpdateCancleauditReason;
import com.ysd.lis.service.lab.LabMaininfoXsReasonService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 消审原因内容表 前端控制器
 * </p>
 *
 * @author Bai
 * @since 2024-02-02
 */
@RestController
@RequestMapping("/lab/maininfoCancleAudit")
public class LabMaininfoCancleauditController extends BaseController {
    @Autowired
    LabMaininfoXsReasonService labMaininfoXsReasonService;

    //新增消审原因组信息
    @ApiOperation("消审原因信息")
    @PostMapping("/add")
    @LogDetail(requestParam = "add", operationType = OperationType.INSERT, module = "消审原因管理", content = "通过检验模块，使用消审原因设置功能新增了：【reasons】消审原因")
    public Result addGroup(@RequestBody AddAndUpdateCancleauditReason addAndUpdateUnqualiReason) {
        return labMaininfoXsReasonService.add(addAndUpdateUnqualiReason);
    }
}
